import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import Mobile from '@/pages/mobile/Mobile'
import Center from '@/pages/center/Center'
import City from '@/pages/city/City'
import Index from '@/pages/index/Index'
import HelpNew from '../pages/center/components/helpnew/helpnew'
import HelpNew1 from '../pages/center/components/helpnew/helpnew1'
import MatterIndex from '../pages/center/components/matter/index'
import Pay from '../pages/center/components/pay/index'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }, {
      path: '/city',
      name: 'City',
      component: City
    }, {
      path: '/index',
      name: 'Index',
      component: Index
    }, {
      path: '/mobile',
      name: 'Mobile',
      component: Mobile
    }, {
      path: '/center',
      name: 'Center',
      component: Center,
      children: [
        {
          path: '/',
          name: 'helpnew',
          component: HelpNew,
          children: [
            {
              path: '/',
              name: 'helpnew1',
              component: HelpNew1
            }
          ]
        },
        {
          path: 'matter',
          name: 'matter',
          component: MatterIndex
        },
        {
          path: 'pay',
          name: 'pay',
          component: Pay
        }
      ]
    }
  ]
})
